package my.graduation.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import my.graduation.entity.ExaminationModify;
import my.graduation.entity.RegistrationModify;

import java.util.Date;

/**
 * @Author: RavenLyn
 * @Date: 2025-02-28
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ExaminationModifyVO {
    private Integer id;

    private Integer examScheId;

    private Integer departmentId;

    private String departmentName;

    private Integer clinicId;

    private String clinicName;

    private Integer doctorId;

    private String doctorName;

    private Date moDate;

    private Integer moDay;

    private Integer moShift;

    public ExaminationModifyVO(ExaminationModify modifyOne, String departmentName, String clinicName) {
        this.id = modifyOne.getId();
        this.examScheId = modifyOne.getExamScheId();
        this.departmentId = modifyOne.getDepartmentId();
        this.departmentName = departmentName;
        this.clinicId = modifyOne.getClinicId();
        this.clinicName = clinicName;
        this.doctorId = modifyOne.getDoctorId();
        this.doctorName = modifyOne.getDoctorName();
        this.moDate = modifyOne.getMoDate();
        this.moDay = modifyOne.getMoDay();
        this.moShift = modifyOne.getMoShift();
    }
}
